package test.san.baseproject.presenter.impl

import test.san.baseproject.model.AreaBeam
import test.san.baseproject.net.MvRequest
import test.san.baseproject.net.ResponseHandler
import test.san.baseproject.presenter.interf.MvPresenter
import test.san.baseproject.view.MvView

class MvPresenterImp(val mvView: MvView): MvPresenter, ResponseHandler<List<AreaBeam>> {

    override fun onError(msg: String?) {
        mvView.onError(msg)
    }

    override fun onSuccess(result: List<AreaBeam>?) {
        mvView.onSuccess(result)
    }

    // 加载区域数据
    override fun loadDatas() {
        MvRequest(this).excute()
    }
}